package ${commonPackage}.dto.${tablePrefix};

import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * ${tableComment} 新增DTO
 *
 * @author ${username}
 * @date ${createTime}
 */
@Data
public class ${entityName}AddDTO {
<#assign entityBaseColumns = ["id", "created_at", "created_by", "created_from", "updated_at", "updated_by", "deleted"]>
<#list columns as column>
<#if !entityBaseColumns?seq_contains(column.columnName)>
	/**
	 * ${column.columnComment}
	 */
	<#if column.isNullable() = true>
	@NotNull(message = "${column.columnComment}不能为空")
	</#if>
    private ${column.javaType} ${column.columnNameCamel};
</#if>
</#list>
}